﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceModule.Models
{
    /// <summary>
    /// 设备的当前状态
    /// </summary>
    public class DeviceStatus
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        public string DeviceId { get; set; }

        /// <summary>
        /// 是否在线
        /// </summary>
        public bool Online { get; set; }

        /// <summary>
        /// 当前温度
        /// </summary>
        public double Temperature { get; set; }     

        // 状态文本，用于 UI 显示
        public string StatusText => Online ? "在线" : "离线";
    }
}